﻿package mortal.game.view.shopMall.shopSecKilling
{
    import flash.events.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class ShopSecKillingIcon extends ActionBaseIcon
    {
        private static var _instance:ShopSecKillingIcon;

        public function ShopSecKillingIcon()
        {
            super(ResFileConst.ShopSecKillIcon);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            if (ShopSecKillingWin.isViewShow)
            {
                ShopSecKillingWin.instance.hide();
            }
            else
            {
                ShopSecKillingWin.instance.show();
            }
            return;
        }// end function

        public static function get instance() : ShopSecKillingIcon
        {
            if (_instance == null)
            {
                _instance = new ShopSecKillingIcon;
            }
            return _instance;
        }// end function

        public static function get isViewShop() : Boolean
        {
            return _instance && !_instance.isHide;
        }// end function

    }
}
